<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><strong>Image</strong></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>Image</code></h1>
<p>图片类</p>
<p>

</p>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#Image:new">Image:new ()</a></td>
	<td class="summary">创建Image</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:description">Image:description ()</a></td>
	<td class="summary">获取描述</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:releaseData">Image:releaseData ()</a></td>
	<td class="summary">释放数据</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:drawAtPoint">Image:drawAtPoint (point)</a></td>
	<td class="summary">绘制点</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:drawInRect">Image:drawInRect (rect)</a></td>
	<td class="summary">绘制矩形</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:setAntiAliasTexParameters">Image:setAntiAliasTexParameters ()</a></td>
	<td class="summary">setAntiAliasTexParameters</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:setAliasTexParameters">Image:setAliasTexParameters ()</a></td>
	<td class="summary">setAliasTexParameters</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:generateMipmap">Image:generateMipmap ()</a></td>
	<td class="summary">generateMipmap</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:stringForFormat">Image:stringForFormat ()</a></td>
	<td class="summary">图片格式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:bitsPerPixelForFormat">Image:bitsPerPixelForFormat ()</a></td>
	<td class="summary">图片像素的位数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:hasPremultipliedAlpha">Image:hasPremultipliedAlpha ()</a></td>
	<td class="summary">hasPremultipliedAlpha</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:hasMipmaps">Image:hasMipmaps ()</a></td>
	<td class="summary">hasMipmaps</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:saveToFile">Image:saveToFile (path)</a></td>
	<td class="summary">保存到文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getImageFileType">Image:getImageFileType ()</a></td>
	<td class="summary">图片文件类型</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getAspectRatio">Image:getAspectRatio ()</a></td>
	<td class="summary">图片宽高比</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:hasAlpha">Image:hasAlpha ()</a></td>
	<td class="summary">图片alpha</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getPixelFormat">Image:getPixelFormat ()</a></td>
	<td class="summary">获取像素格式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getPixelsWide">Image:getPixelsWide ()</a></td>
	<td class="summary">获取像素宽度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getPixelsHigh">Image:getPixelsHigh ()</a></td>
	<td class="summary">获取像素高度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getContentSize">Image:getContentSize ()</a></td>
	<td class="summary">获取内容尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:isMonochrome">Image:isMonochrome ()</a></td>
	<td class="summary">是否是黑白照</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:premultipliedImageData">Image:premultipliedImageData ()</a></td>
	<td class="summary">premultipliedImageData</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:repremultipliedImageData">Image:repremultipliedImageData ()</a></td>
	<td class="summary">repremultipliedImageData</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:updateGifImageWithIndex">Image:updateGifImageWithIndex (index)</a></td>
	<td class="summary">更新图片为gif指定索引的帧</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getGifImageIndex">Image:getGifImageIndex ()</a></td>
	<td class="summary">获取gif图片索引</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:getGifImageCounts">Image:getGifImageCounts ()</a></td>
	<td class="summary">获取gif图片帧数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:detectFormat">Image:detectFormat (userdata)</a></td>
	<td class="summary">测试图片格式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Image:copy">Image:copy ()</a></td>
	<td class="summary">拷贝图片</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "Image:new"></a>
    <strong>Image:new ()</strong>
    </dt>
    <dd>
    创建Image



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/Image.html#">Image</a></span>
        image
    </ol>




</dd>
    <dt>
    <a name = "Image:description"></a>
    <strong>Image:description ()</strong>
    </dt>
    <dd>
    获取描述



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        fileName
    </ol>




</dd>
    <dt>
    <a name = "Image:releaseData"></a>
    <strong>Image:releaseData ()</strong>
    </dt>
    <dd>
    释放数据







</dd>
    <dt>
    <a name = "Image:drawAtPoint"></a>
    <strong>Image:drawAtPoint (point)</strong>
    </dt>
    <dd>
    绘制点


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">point</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Image:drawInRect"></a>
    <strong>Image:drawInRect (rect)</strong>
    </dt>
    <dd>
    绘制矩形


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rect</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Image:setAntiAliasTexParameters"></a>
    <strong>Image:setAntiAliasTexParameters ()</strong>
    </dt>
    <dd>
    setAntiAliasTexParameters







</dd>
    <dt>
    <a name = "Image:setAliasTexParameters"></a>
    <strong>Image:setAliasTexParameters ()</strong>
    </dt>
    <dd>
    setAliasTexParameters







</dd>
    <dt>
    <a name = "Image:generateMipmap"></a>
    <strong>Image:generateMipmap ()</strong>
    </dt>
    <dd>
    generateMipmap







</dd>
    <dt>
    <a name = "Image:stringForFormat"></a>
    <strong>Image:stringForFormat ()</strong>
    </dt>
    <dd>
    图片格式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        format
    </ol>




</dd>
    <dt>
    <a name = "Image:bitsPerPixelForFormat"></a>
    <strong>Image:bitsPerPixelForFormat ()</strong>
    </dt>
    <dd>
    图片像素的位数



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        bits
    </ol>




</dd>
    <dt>
    <a name = "Image:hasPremultipliedAlpha"></a>
    <strong>Image:hasPremultipliedAlpha ()</strong>
    </dt>
    <dd>
    hasPremultipliedAlpha



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bhas
    </ol>




</dd>
    <dt>
    <a name = "Image:hasMipmaps"></a>
    <strong>Image:hasMipmaps ()</strong>
    </dt>
    <dd>
    hasMipmaps



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bhas
    </ol>




</dd>
    <dt>
    <a name = "Image:saveToFile"></a>
    <strong>Image:saveToFile (path)</strong>
    </dt>
    <dd>
    保存到文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">path</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bok
    </ol>




</dd>
    <dt>
    <a name = "Image:getImageFileType"></a>
    <strong>Image:getImageFileType ()</strong>
    </dt>
    <dd>
    图片文件类型



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        type
    </ol>




</dd>
    <dt>
    <a name = "Image:getAspectRatio"></a>
    <strong>Image:getAspectRatio ()</strong>
    </dt>
    <dd>
    图片宽高比



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        aspectRatio
    </ol>




</dd>
    <dt>
    <a name = "Image:hasAlpha"></a>
    <strong>Image:hasAlpha ()</strong>
    </dt>
    <dd>
    图片alpha



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        alpha
    </ol>




</dd>
    <dt>
    <a name = "Image:getPixelFormat"></a>
    <strong>Image:getPixelFormat ()</strong>
    </dt>
    <dd>
    获取像素格式



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        format
    </ol>




</dd>
    <dt>
    <a name = "Image:getPixelsWide"></a>
    <strong>Image:getPixelsWide ()</strong>
    </dt>
    <dd>
    获取像素宽度



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        wide
    </ol>




</dd>
    <dt>
    <a name = "Image:getPixelsHigh"></a>
    <strong>Image:getPixelsHigh ()</strong>
    </dt>
    <dd>
    获取像素高度



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        high
    </ol>




</dd>
    <dt>
    <a name = "Image:getContentSize"></a>
    <strong>Image:getContentSize ()</strong>
    </dt>
    <dd>
    获取内容尺寸



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "Image:isMonochrome"></a>
    <strong>Image:isMonochrome ()</strong>
    </dt>
    <dd>
    是否是黑白照



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        monochrome
    </ol>




</dd>
    <dt>
    <a name = "Image:premultipliedImageData"></a>
    <strong>Image:premultipliedImageData ()</strong>
    </dt>
    <dd>
    premultipliedImageData







</dd>
    <dt>
    <a name = "Image:repremultipliedImageData"></a>
    <strong>Image:repremultipliedImageData ()</strong>
    </dt>
    <dd>
    repremultipliedImageData







</dd>
    <dt>
    <a name = "Image:updateGifImageWithIndex"></a>
    <strong>Image:updateGifImageWithIndex (index)</strong>
    </dt>
    <dd>
    更新图片为gif指定索引的帧


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Image:getGifImageIndex"></a>
    <strong>Image:getGifImageIndex ()</strong>
    </dt>
    <dd>
    获取gif图片索引



    <h3>Returns:</h3>
    <ol>

        index
    </ol>




</dd>
    <dt>
    <a name = "Image:getGifImageCounts"></a>
    <strong>Image:getGifImageCounts ()</strong>
    </dt>
    <dd>
    获取gif图片帧数



    <h3>Returns:</h3>
    <ol>

        count
    </ol>




</dd>
    <dt>
    <a name = "Image:detectFormat"></a>
    <strong>Image:detectFormat (userdata)</strong>
    </dt>
    <dd>
    测试图片格式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">userdata</span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

         format
JPG = 0,
PNG = 1,
GIF = 2,
TIFF = 3,
WEBP = 4,
ETC = 5,/
TGA = 6,
RAW_DATA = 7,
    </ol>




</dd>
    <dt>
    <a name = "Image:copy"></a>
    <strong>Image:copy ()</strong>
    </dt>
    <dd>
    拷贝图片



    <h3>Returns:</h3>
    <ol>

        Image
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
